package root.sport_manager.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import root.sport_manager.service.SystemMenuService;

import java.util.Map;

@Api(tags = "登录信息管理")
@RestController
@RequestMapping("login")
public class LoginController {
    @Autowired
    private SystemMenuService systemMenuService;

    @ApiOperation("生成菜单")
    @GetMapping("/menu")
    public Map<String,Object> menu(){
        return systemMenuService.menu();
    }
}
